package com.server.server_a10.entity.securitySystem;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 预计设计一扇门：大门，其他不考虑。
 * <p>
 * param:
 * image 图片，用来人脸识别
 * isOpen 开启的状态
 */

@Data
@TableName("door")
public class Door implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    @TableField(value = "home_id")
    private long homeId;
    private boolean isOpen;
    private boolean isConnect;

    public Door(Long id, boolean isOpen) {
        this.id = id;
        this.isOpen = isOpen;
    }


}
